<?php
/**
 * 单个话题接口
 */
require_once dirname(dirname(__DIR__))."/common.php";

use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\model\Statics;

//分类ID
$h5_name=isset($_REQUEST['h5_name']) ? trim($_REQUEST['h5_name']) : 'h5_1';//活动名称
$online=isset($_REQUEST['online']) ? trim($_REQUEST['online']) : 'test';

$suffix=rand(1,5);
if($online=="test"){
    $key1 = REDIS_PREFIX."test_H5_statics_1";
    $key2 = REDIS_PREFIX."test_H5_statics_2";
    $key3 = REDIS_PREFIX."test_H5_statics_3";
    $key4 = REDIS_PREFIX."test_H5_statics_4";
    $key5 = REDIS_PREFIX."test_H5_statics_5";
}else if($online=="no_test"){
    //正式key
    $key1 = REDIS_PREFIX."H5_statics_1";
    $key2 = REDIS_PREFIX."H5_statics_2";
    $key3 = REDIS_PREFIX."H5_statics_3";
    $key4 = REDIS_PREFIX."H5_statics_4";
    $key5 = REDIS_PREFIX."H5_statics_5";
}

$redis = SysResource::getRedis();
$r1=$redis->lRange($key1,0,-1);
$r2=$redis->lRange($key2,0,-1);
$r3=$redis->lRange($key3,0,-1);
$r4=$redis->lRange($key4,0,-1);
$r5=$redis->lRange($key5,0,-1);
var_dump($key1);
var_dump($key2);
var_dump($key3);
var_dump($key4);
var_dump($key5);
var_dump($r1);
var_dump($r2);
var_dump($r3);
var_dump($r4);
var_dump($r5);
exit;